﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EFContrib.PS4EF.Tst.RelationShipType
{
    /// <summary>
    /// There are no comments for SimpleRelationshipTestEntities in the schema.
    /// </summary>
    public partial class SimpleRelationshipTestEntities : global::System.Data.Objects.ObjectContext
    {
        /// <summary>
        /// Initializes a new SimpleRelationshipTestEntities object using the connection string found in the 'SimpleRelationshipTestEntities' section of the application configuration file.
        /// </summary>
        public SimpleRelationshipTestEntities() :
            base("name=SimpleRelationshipTestEntities", "SimpleRelationshipTestEntities")
        {
        }
        /// <summary>
        /// Initialize a new SimpleRelationshipTestEntities object.
        /// </summary>
        public SimpleRelationshipTestEntities(string connectionString) :
            base(connectionString, "SimpleRelationshipTestEntities")
        {
        }
        /// <summary>
        /// Initialize a new SimpleRelationshipTestEntities object.
        /// </summary>
        public SimpleRelationshipTestEntities(global::System.Data.EntityClient.EntityConnection connection) :
            base(connection, "SimpleRelationshipTestEntities")
        {
        }
        /// <summary>
        /// There are no comments for Car in the schema.
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        public global::System.Data.Objects.ObjectQuery<Car> Car
        {
            get
            {
                if ((this._Car == null))
                {
                    this._Car = base.CreateQuery<Car>("[Car]");
                }
                return this._Car;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Car> _Car;
        /// <summary>
        /// There are no comments for Customer in the schema.
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        public global::System.Data.Objects.ObjectQuery<Customer> Customer
        {
            get
            {
                if ((this._Customer == null))
                {
                    this._Customer = base.CreateQuery<Customer>("[Customer]");
                }
                return this._Customer;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Customer> _Customer;
        /// <summary>
        /// There are no comments for Order in the schema.
        /// </summary>
        [global::System.ComponentModel.BrowsableAttribute(false)]
        public global::System.Data.Objects.ObjectQuery<Order> Order
        {
            get
            {
                if ((this._Order == null))
                {
                    this._Order = base.CreateQuery<Order>("[Order]");
                }
                return this._Order;
            }
        }
        private global::System.Data.Objects.ObjectQuery<Order> _Order;
        /// <summary>
        /// There are no comments for Car in the schema.
        /// </summary>
        public void AddToCar(Car car)
        {
            base.AddObject("Car", car);
        }
        /// <summary>
        /// There are no comments for Customer in the schema.
        /// </summary>
        public void AddToCustomer(Customer customer)
        {
            base.AddObject("Customer", customer);
        }
        /// <summary>
        /// There are no comments for Order in the schema.
        /// </summary>
        public void AddToOrder(Order order)
        {
            base.AddObject("Order", order);
        }
    } 
}
